{# Author : Brice VICO #}

{% extends "::layout.html.twig" %}
{% block title %}
modification d'un étudiant - {{ parent() }}
{% endblock %}

{% block body %}
    <div class="container" style="margin-top :25px;">
            <div class="col-md-4 col-md-offset-3">
                    {% if afficherFlash %}
                            <div class="alert alert-{{typeFlash}}">{{flash}}</div>
                                {% endif %}
                                        <form action="{{ path('projet_site_modifier_etudiant') }}" method="post" enctype="multipart/form-data">
                                                        <div class="form-group">
                                                                            {{form_errors(form.numEtud)}}
                                                                                            <label for="numEtud">Numéro Étudiant</label>
                                                                                                            {{form_widget(form.numEtud, {'attr' : {'class' : 'form-control'}})}}
                                                                                                                        </div>
                                                                                                                                    <div class="form-group">
                                                                                                                                                        {{form_errors(form.note)}}
                                                                                                                                                                        <label for="note">Note</label>
                                                                                                                                                                                        {{form_widget(form.note, {'attr' : {'class' : 'form-control'}})}}
                                                                                                                                                                                                    </div>
                                                                                                                                    <div class="form-group">
                                                                                                                                                        {{form_errors(form.photo)}}
                                                                                                                                                                        <label for="photo">Photo</label>
                                                                                                                                                                                        {{form_widget(form.photo, {'attr' : {'class' : 'form-control'}})}}
                                                                                                                                                                                                    </div>
                                                                                                                                                                                                                <button type="submit" class="btn btn-success">Modifier cet étudiant</button>
                                                                                                                                                                                                                            {{form_rest(form)}}
                                                                                                                                                                                                                                    </form>
                                                                                                                                                                                                                                        </div>
                                                                                                                                                                                                                                            </div>
                                                                                                                                                                                                                                            {% endblock %}
